package com.easou.ps.dk.utils;

import java.io.File;

public class loadFileUtils {

	public static String toGetYestedayQP(){
		String yesterday = GetDay.getYesterday();
		yesterday = (yesterday.endsWith("/") ? yesterday.substring(0, yesterday.length()-1) : yesterday);
		String dataPath = Configer.get("data_path");
		dataPath = (dataPath.endsWith("/") ? dataPath.substring(0, dataPath.length()-1) : dataPath);
		File todayFile = new File(dataPath+"/"+yesterday+"/qp.ser");
		if(todayFile.exists()){
			return dataPath+"/"+yesterday+"/qp.ser";
		}
		return null;
	}
}
